<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('user/index')}">代理商列表</a></li>
			<li class="active"><a href="{:url('user/add')}">代理商添加</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('user/addpost')}">
			<div class="form-group">
				<label for="real_name" class="col-sm-2 control-label"><span class="form-required">*</span>真实姓名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="real_name" name="real_name" required>
				</div>
			</div>
			<div class="form-group">
				<label for="id_card" class="col-sm-2 control-label"><span class="form-required">*</span>身份证号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="id_card" name="id_card" required>
				</div>
			</div>
			<div class="form-group">
				<label for="brand_name" class="col-sm-2 control-label"><span class="form-required">*</span>代理商等级</label>
				<div class="col-md-6 col-sm-10">
					<select name="agr_leve" id="agr_leve">
						<option value="">请选择</option>
						<volist name="result" id="vo">
							<option value="{$vo.id}">{$vo.agr_level}</option>
						</volist>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="brand_name" class="col-sm-2 control-label"><span class="form-required">*</span>平台名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="brand_name" name="brand_name" required>
				</div>
			</div>
			<div class="form-group">
				<label for="mobile" class="col-sm-2 control-label"><span class="form-required">*</span>手机号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="mobile" name="mobile" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>性别</label>
				<div class="col-md-6 col-sm-10">
					<input type="radio" id="sex" name="sex" value="1">男
					<input type="radio" id="sex" name="sex" value="2">女
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_pass" class="col-sm-2 control-label"><span class="form-required">*</span>密码</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_pass" name="user_pass" placeholder="******">
				</div>
			</div>
			<div class="form-group">
				<label for="user_email" class="col-sm-2 control-label"><span class="form-required">*</span>邮箱</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="user_email" name="user_email" required>
				</div>
			</div>
			<div class="form-group">
				<label for="incode" class="col-sm-2 control-label"><span class="form-required">*</span>推荐码</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="incode" name="incode">
				</div>
			</div>
			<div class="form-group">
				<label for="role_id" class="col-sm-2 control-label"><span class="form-required">*</span>角色</label>
				<div class="col-md-6 col-sm-10">
					<foreach name="roles" item="vo">
						<label class="checkbox-inline">
							<input value="{$vo.id}" type="radio" id="role_id" name="role_id">{$vo.name}
						</label>
					</foreach>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>